package com.xmy.cultivate.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author min
 * @since 2022-12-27
 */
@Data
public class TrackMarket implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long pid;

    private String treeLevel;//树级

    private Integer yearPart;

    private Integer quarterNum;

    private String name;

    //2的时候用到，战队名称
    private String teamName;

    private String teacherId;

    /**
     * 1个人，2校区
     */
    private Integer type;

    /**
     * 1 市场部，2战队
     */
    private Integer trackType;

    /**
     * 1正常，0
     */
    private Integer status;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 分类：1是续班赛道，2是招生赛道
     */
    private Integer classify;

    private Integer yearClassId;

    private Long schoolId;

    private Integer schoolType;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(exist = false)
    private List<Long> sourseIdList;

    @ApiModelProperty("右边列表")
    @TableField(exist = false)
    private List<TrackDetail> trackDetailList;

    @ApiModelProperty("子目录列表")
    @TableField(exist = false)
    private List<TrackMarket> children;

    /**
     * 转入id
     */
    @TableField(exist = false)
    private Long inId;

    /**
     * 教师名称
     */
    @TableField(exist = false)
    private String teacherName;

    @TableField(exist = false)
    private String schoolIdStr;

    @TableField(exist = false)
    private String yearClassIdStr;

    @TableField(exist = false)
    private String classTypeIdStr;

    @TableField(exist = false)
    private String subjectsIdStr;
}
